<div id="recipe-details">
	<div class="recipe-title">
		<h3>
			<a href="<?php echo $this->url( array( 
				'controller' => 'recipe', 
				'action' => 'view',
				'id'     => $this->id
			), 'default' ); ?>"><?php echo $this->escape( $this->name ) ?></a>
			<?php echo round_brackets( $this->view_count ) ?>
			<span> -  
				<a href="<?php echo $this->url( array(
					'controller' => 'user',
					'action' => 'view',
					'id' => strtolower($this->username)
				), 'default' ); ?>"><?php echo $this->username ?></a>
			</span>
		</h3>
	</div>
	<!-- Edit/Delete links  -->
	<?php if( $this->checkOwner($this->user_id) ): ?>
	<div>
		<a href="<?= $this->url( array( 
			'controller' => 'recipe', 
			'action' => 'edit',
			'id'     => $this->id
		), 'default' ); ?>"><img title="Edit" src="/images/icons/pencil.png" alt="Edit"/></a> &nbsp; 
		<a href="<?= $this->url( array( 
			'controller' => 'recipe', 
			'action' => 'delete',
			'id'     => $this->id
		), 'default' ); ?>"><img title="Delete" src="/images/icons/cross.png" alt="Delete"/></a>
	</div>
	<?php endif; ?>
	<div class="recipe-summary">
		<ul>
			<li><?php echo 'Difficulty: ' . $this->difficulty ?> |</li>
			<li><?php echo 'Serves: ' . $this->serves ?> | </li>
			<li><img src="/images/icons/clock.png" alt="total time" title="Total Time"/><?php echo minsToWords($this->total_time) ?> |</li>
			<?php echo ( $this->freezable ? '<li><img src="/images/freezable.gif" alt="freezable" title="Freezable"> |</li>' : null ) ?>
			<!-- <li><?php echo 'Ratings count: ' . $this->ratings_count ?> |</li> -->
			<li><?php echo $this->comments_count ?><img src="/images/icons/comments.png" alt="comments"/></li>
		</ul>
	</div>
</div>
